package dt.inlee.system.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dt.inlee.common.exception.FrameworkException;
import dt.inlee.domain.BusinessDictionaryDetail;
import dt.inlee.system.dao.BusinessDictionaryDetailDao;

/**
 * @功能说明：业务字典明细业务层
 * @作者：潘瑞峥
 * @创建日期：2010-6-4
 */
@Service("businessDictionaryDetailService")
public class BusinessDictionaryDetailService {
	@Resource(name = "businessDictionaryDetailDao")
	private BusinessDictionaryDetailDao businessDictionaryDetailDao;

	/**
	 * 通过id查询出字典明细，并返回此类
	 * 
	 * @param businessDictionaryDetailId
	 * @return
	 * @throws FrameworkException
	 */
	public BusinessDictionaryDetail findBusinessDictionaryDetailById(String businessDictionaryDetailId)
			throws FrameworkException {
		return (BusinessDictionaryDetail) businessDictionaryDetailDao.get(BusinessDictionaryDetail.class,
				businessDictionaryDetailId);
	}

	/**
	 * 通过id删除业务字典明细
	 * 
	 * @param id
	 * @throws FrameworkException
	 */
	public void deleteById(String id) throws FrameworkException {
		businessDictionaryDetailDao.deleteById(BusinessDictionaryDetail.class, id);
	}
}